<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbcostviatCreateDlg" widgetVar="PyfntbcostviatCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbcostviatTitle}">

            <h:form id="PyfntbcostviatCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbcostviatController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_nivel}" for="nivel" />
                        <p:inputText id="nivel" value="#{pyfntbcostviatController.selected.nivel}" title="#{myBundle.CreatePyfntbcostviatTitle_nivel}" required="true" requiredMessage="#{myBundle.CreatePyfntbcostviatRequiredMessage_nivel}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyfntbcostviatController.selected.descripcion}" title="#{myBundle.CreatePyfntbcostviatTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreatePyfntbcostviatRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_zonaa}" for="zonaa" />
                        <p:inputText id="zonaa" value="#{pyfntbcostviatController.selected.zonaa}" title="#{myBundle.CreatePyfntbcostviatTitle_zonaa}" required="true" requiredMessage="#{myBundle.CreatePyfntbcostviatRequiredMessage_zonaa}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_zonab}" for="zonab" />
                        <p:inputText id="zonab" value="#{pyfntbcostviatController.selected.zonab}" title="#{myBundle.CreatePyfntbcostviatTitle_zonab}" required="true" requiredMessage="#{myBundle.CreatePyfntbcostviatRequiredMessage_zonab}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbcostviatController.selected.fecharegistro}" title="#{myBundle.EditPyfntbcostviatTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbcostviatRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbcostviatLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbcostviatController.selected.observaciones}" title="#{myBundle.CreatePyfntbcostviatTitle_observaciones}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbcostviatController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbcostviatListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbcostviatCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbcostviatCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
